<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>libnetconf: NETCONF rpc</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../libnetconf-logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">libnetconf
   &#160;<span id="projectnumber">0.10.0-146_trunk</span>
   </div>
   <div id="projectbrief">NETCONF Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('db/de9/group__rpc.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">NETCONF rpc</div>  </div>
</div><!--header-->
<div class="contents">

<p>libnetconf's functions for handling NETCONF &lt;rpc&gt; messages.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gab21d1d39737065c552f2ccc5b4819262"><td class="memItemLeft" align="right" valign="top">typedef struct nc_msg&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a></td></tr>
<tr class="memdesc:gab21d1d39737065c552f2ccc5b4819262"><td class="mdescLeft">&#160;</td><td class="mdescRight">rpc message.  <a href="#gab21d1d39737065c552f2ccc5b4819262">More...</a><br/></td></tr>
<tr class="separator:gab21d1d39737065c552f2ccc5b4819262"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga06a2c29efc74abd4d0c88e7abb5e914d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga06a2c29efc74abd4d0c88e7abb5e914d">NC_CAP_ATTR</a> { <a class="el" href="../../db/de9/group__rpc.html#gga06a2c29efc74abd4d0c88e7abb5e914dadef4f6d77cebdc7c004db1f5f5f612ba">NC_CAP_ATTR_WITHDEFAULTS_MODE</a> = 1
 }</td></tr>
<tr class="memdesc:ga06a2c29efc74abd4d0c88e7abb5e914d"><td class="mdescLeft">&#160;</td><td class="mdescRight">RPC attributes list.  <a href="../../db/de9/group__rpc.html#ga06a2c29efc74abd4d0c88e7abb5e914d">More...</a><br/></td></tr>
<tr class="separator:ga06a2c29efc74abd4d0c88e7abb5e914d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5852fd110198481afb37cc8dcf0bf454"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a> { <br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga5852fd110198481afb37cc8dcf0bf454ab2b415d864a2f84bf6e0e31abe56d187">NC_EDIT_DEFOP_ERROR</a> = -1, 
<a class="el" href="../../db/de9/group__rpc.html#gga5852fd110198481afb37cc8dcf0bf454ae959e6f9ed31a8e4441ad84eae8b43d2">NC_EDIT_DEFOP_NOTSET</a> = 0, 
<a class="el" href="../../db/de9/group__rpc.html#gga5852fd110198481afb37cc8dcf0bf454a5242dcc6a090887ef8b3f6c96b1b4931">NC_EDIT_DEFOP_MERGE</a> = 1, 
<a class="el" href="../../db/de9/group__rpc.html#gga5852fd110198481afb37cc8dcf0bf454a80cda5b10ba3ff7f819c08508be9237c">NC_EDIT_DEFOP_REPLACE</a> = 2, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga5852fd110198481afb37cc8dcf0bf454a37dd969ad73f6ac990785d9802672946">NC_EDIT_DEFOP_NONE</a> = 3
<br/>
 }</td></tr>
<tr class="memdesc:ga5852fd110198481afb37cc8dcf0bf454"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of edit-config's &lt;default-operation&gt; element values.  <a href="../../db/de9/group__rpc.html#ga5852fd110198481afb37cc8dcf0bf454">More...</a><br/></td></tr>
<tr class="separator:ga5852fd110198481afb37cc8dcf0bf454"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8eb32ba579043f2750fa8558d9284b32"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a> { <br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga8eb32ba579043f2750fa8558d9284b32a9a174d6de80e8ea7d2267d550061f4b4">NC_EDIT_ERROPT_ERROR</a> = -1, 
<a class="el" href="../../db/de9/group__rpc.html#gga8eb32ba579043f2750fa8558d9284b32a8f01a1f484abf78c8c0ea3f2d369306e">NC_EDIT_ERROPT_NOTSET</a> = 0, 
<a class="el" href="../../db/de9/group__rpc.html#gga8eb32ba579043f2750fa8558d9284b32ae3322bea978cea2d2a7c0818680bd721">NC_EDIT_ERROPT_STOP</a> = 1, 
<a class="el" href="../../db/de9/group__rpc.html#gga8eb32ba579043f2750fa8558d9284b32a69d82c66a324215010791718c1bc61f6">NC_EDIT_ERROPT_CONT</a> = 2, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga8eb32ba579043f2750fa8558d9284b32a35128042558e32842f827be8c31d5b1a">NC_EDIT_ERROPT_ROLLBACK</a> = 3
<br/>
 }</td></tr>
<tr class="memdesc:ga8eb32ba579043f2750fa8558d9284b32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of edit-config's &lt;error-option&gt; element values.  <a href="../../db/de9/group__rpc.html#ga8eb32ba579043f2750fa8558d9284b32">More...</a><br/></td></tr>
<tr class="separator:ga8eb32ba579043f2750fa8558d9284b32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaff232fd4280e385c8e45fcca033e58fd"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaff232fd4280e385c8e45fcca033e58fd">NC_EDIT_OP_TYPE</a> { <br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#ggaff232fd4280e385c8e45fcca033e58fda0edecb3360a233e6d2d8435a96a3e54f">NC_EDIT_OP_ERROR</a> = -1, 
<a class="el" href="../../db/de9/group__rpc.html#ggaff232fd4280e385c8e45fcca033e58fda269b9d38aa530c9cfe21b5477e328e0c">NC_EDIT_OP_MERGE</a> = 1, 
<a class="el" href="../../db/de9/group__rpc.html#ggaff232fd4280e385c8e45fcca033e58fda973d70fee8360757be1f9379334a5ecb">NC_EDIT_OP_NOTSET</a> = 0, 
<a class="el" href="../../db/de9/group__rpc.html#ggaff232fd4280e385c8e45fcca033e58fda5d2ca68f21babd6220538a1e3eac2356">NC_EDIT_OP_REPLACE</a> = 2, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#ggaff232fd4280e385c8e45fcca033e58fdaa7f202a2d5f43e094946b1361da93f40">NC_EDIT_OP_CREATE</a>, 
<a class="el" href="../../db/de9/group__rpc.html#ggaff232fd4280e385c8e45fcca033e58fdaf85c0828113a86cb30dd67991e19b6ba">NC_EDIT_OP_DELETE</a>, 
<a class="el" href="../../db/de9/group__rpc.html#ggaff232fd4280e385c8e45fcca033e58fda5c6473715392eb03614abc6d7e62bdf9">NC_EDIT_OP_REMOVE</a>
<br/>
 }</td></tr>
<tr class="memdesc:gaff232fd4280e385c8e45fcca033e58fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of edit-config's operation attribute values.  <a href="../../db/de9/group__rpc.html#gaff232fd4280e385c8e45fcca033e58fd">More...</a><br/></td></tr>
<tr class="separator:gaff232fd4280e385c8e45fcca033e58fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaca86efe74fc9a26cc30e33a8e9772579"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaca86efe74fc9a26cc30e33a8e9772579">NC_EDIT_TESTOPT_TYPE</a> { <br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#ggaca86efe74fc9a26cc30e33a8e9772579a1770ae5b90495ca720f60ca76ab029b4">NC_EDIT_TESTOPT_ERROR</a> = -1, 
<a class="el" href="../../db/de9/group__rpc.html#ggaca86efe74fc9a26cc30e33a8e9772579acb24b46f501c50f2a78b87da73322bc7">NC_EDIT_TESTOPT_NOTSET</a> = 0, 
<a class="el" href="../../db/de9/group__rpc.html#ggaca86efe74fc9a26cc30e33a8e9772579aae2180fb26e03b4c1ea184abb463056c">NC_EDIT_TESTOPT_TESTSET</a> = 1, 
<a class="el" href="../../db/de9/group__rpc.html#ggaca86efe74fc9a26cc30e33a8e9772579a56b353b9c45d7eed3373e41feb509294">NC_EDIT_TESTOPT_SET</a> = 2, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#ggaca86efe74fc9a26cc30e33a8e9772579a7f8086cbfcc1c1811b33e2d681f77072">NC_EDIT_TESTOPT_TEST</a> = 3
<br/>
 }</td></tr>
<tr class="memdesc:gaca86efe74fc9a26cc30e33a8e9772579"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of edit-config's &lt;test-option&gt; element values.  <a href="../../db/de9/group__rpc.html#gaca86efe74fc9a26cc30e33a8e9772579">More...</a><br/></td></tr>
<tr class="separator:gaca86efe74fc9a26cc30e33a8e9772579"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9e74498f9118686c7fb8dfe2c2459706"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">NC_FILTER_TYPE</a> { <a class="el" href="../../db/de9/group__rpc.html#gga9e74498f9118686c7fb8dfe2c2459706a487f472296b31fcec26a2bef87d50178">NC_FILTER_UNKNOWN</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga9e74498f9118686c7fb8dfe2c2459706ab584539474b828102a0b7238b614abd4">NC_FILTER_SUBTREE</a>
 }</td></tr>
<tr class="memdesc:ga9e74498f9118686c7fb8dfe2c2459706"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of supported NETCONF filter types.  <a href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">More...</a><br/></td></tr>
<tr class="separator:ga9e74498f9118686c7fb8dfe2c2459706"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3e6fc59e2d06c1c0edb36ee64ee9cc07"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">NC_OP</a> { <br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a7ca4781a2c8644c3c15e3b0cd9116090">NC_OP_UNKNOWN</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a9f918e6ed1c58fb70ffe4cbd05882332">NC_OP_GETCONFIG</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07ae7c153c569fe9ca06532dadc41dce78f">NC_OP_GET</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a545f2b8ad13fc1cb449f078908312ef1">NC_OP_EDITCONFIG</a>, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07af5cc206ce4cd2b20cd562bb01e0a8da3">NC_OP_CLOSESESSION</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a01a1b829ca743ac8f8e8444d71f16d0d">NC_OP_KILLSESSION</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07abc36a612cfba2cf3462d99fae4ab4ac5">NC_OP_COPYCONFIG</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07abf39ac97e04fd8d77d6a409a004eb234">NC_OP_DELETECONFIG</a>, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07af07ffd285bc743fcbdeace96f2b21d22">NC_OP_LOCK</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07aa4071db38c423865b24543cb504a4b42">NC_OP_UNLOCK</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a350f96fd686eea971d1d9e087a9ff8f4">NC_OP_COMMIT</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a59fd75a1b96a307a2d87e327c7d9a695">NC_OP_DISCARDCHANGES</a>, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07aafc549220669ed05b9c043b09be496fe">NC_OP_CREATESUBSCRIPTION</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a213f30aeb2d0d09bc6de7d98015860c3">NC_OP_GETSCHEMA</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a064e97e228090350548b4b67c6c598b0">NC_OP_VALIDATE</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga3e6fc59e2d06c1c0edb36ee64ee9cc07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of supported &lt;rpc&gt; operations.  <a href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">More...</a><br/></td></tr>
<tr class="separator:ga3e6fc59e2d06c1c0edb36ee64ee9cc07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4088fac1dd592062b27ff5b0e1708d00"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">NC_RPC_TYPE</a> { <br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00ae27a06c29d4cb56cce4298bc54dc498a">NC_RPC_UNKNOWN</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00a4c352cf3bf15069fc76e4ac698de0a8c">NC_RPC_HELLO</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00ab9542d7955d9821f23b5909f3dbec7bb">NC_RPC_DATASTORE_READ</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00ab283d1c39df65fe56607329bc3c946f9">NC_RPC_DATASTORE_WRITE</a>, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00aa7e77d1cd094384f2683352c63a4fccb">NC_RPC_SESSION</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga4088fac1dd592062b27ff5b0e1708d00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of &lt;rpc&gt; operation types.  <a href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">More...</a><br/></td></tr>
<tr class="separator:ga4088fac1dd592062b27ff5b0e1708d00"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0dbfd598d6fd303819817370cdf63229"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga0dbfd598d6fd303819817370cdf63229">nc_filter_free</a> (struct nc_filter *filter)</td></tr>
<tr class="memdesc:ga0dbfd598d6fd303819817370cdf63229"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy the filter structure.  <a href="#ga0dbfd598d6fd303819817370cdf63229">More...</a><br/></td></tr>
<tr class="separator:ga0dbfd598d6fd303819817370cdf63229"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga599c715b0aee0f1f2ed231ce1d78e5bd"><td class="memItemLeft" align="right" valign="top">struct nc_filter *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga599c715b0aee0f1f2ed231ce1d78e5bd">nc_filter_new</a> (<a class="el" href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">NC_FILTER_TYPE</a> type,...)</td></tr>
<tr class="memdesc:ga599c715b0aee0f1f2ed231ce1d78e5bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new NETCONF filter of the specified type.  <a href="#ga599c715b0aee0f1f2ed231ce1d78e5bd">More...</a><br/></td></tr>
<tr class="separator:ga599c715b0aee0f1f2ed231ce1d78e5bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5c4348c96b0d5e6a64f94dbbdeaf4100"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga5c4348c96b0d5e6a64f94dbbdeaf4100">nc_rpc_build</a> (const char *rpc_dump, const struct nc_session *session)</td></tr>
<tr class="memdesc:ga5c4348c96b0d5e6a64f94dbbdeaf4100"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build &lt;rpc&gt; message from the string. This is the reverse function of the <a class="el" href="../../db/de9/group__rpc.html#ga3e840368c40be2ea4d5201edbd3adaca" title="Dump the rpc message into a string. ">nc_rpc_dump()</a>.  <a href="#ga5c4348c96b0d5e6a64f94dbbdeaf4100">More...</a><br/></td></tr>
<tr class="separator:ga5c4348c96b0d5e6a64f94dbbdeaf4100"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga14f5e170cbc9acd9a146eee2fb6b796f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga14f5e170cbc9acd9a146eee2fb6b796f">nc_rpc_capability_attr</a> (<a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc, <a class="el" href="../../db/de9/group__rpc.html#ga06a2c29efc74abd4d0c88e7abb5e914d">NC_CAP_ATTR</a> attr,...)</td></tr>
<tr class="memdesc:ga14f5e170cbc9acd9a146eee2fb6b796f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the attribute of the given &lt;rpc&gt; which is specific for some NETCONF capability.  <a href="#ga14f5e170cbc9acd9a146eee2fb6b796f">More...</a><br/></td></tr>
<tr class="separator:ga14f5e170cbc9acd9a146eee2fb6b796f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7977ca8b562643607b3c846ed36bbb23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga7977ca8b562643607b3c846ed36bbb23">nc_rpc_commit</a> (void)</td></tr>
<tr class="memdesc:ga7977ca8b562643607b3c846ed36bbb23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;commit&gt; NETCONF rpc message.  <a href="#ga7977ca8b562643607b3c846ed36bbb23">More...</a><br/></td></tr>
<tr class="separator:ga7977ca8b562643607b3c846ed36bbb23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf7b76c1243dc218cf1dc8b17876e319c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaf7b76c1243dc218cf1dc8b17876e319c">nc_rpc_copyconfig</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> source, <a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target,...)</td></tr>
<tr class="memdesc:gaf7b76c1243dc218cf1dc8b17876e319c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;copy-config&gt; NETCONF rpc message.  <a href="#gaf7b76c1243dc218cf1dc8b17876e319c">More...</a><br/></td></tr>
<tr class="separator:gaf7b76c1243dc218cf1dc8b17876e319c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae1faa46f5048f21dc580d44836d848e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gae1faa46f5048f21dc580d44836d848e8">nc_rpc_deleteconfig</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target,...)</td></tr>
<tr class="memdesc:gae1faa46f5048f21dc580d44836d848e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;delete-config&gt; NETCONF rpc message.  <a href="#gae1faa46f5048f21dc580d44836d848e8">More...</a><br/></td></tr>
<tr class="separator:gae1faa46f5048f21dc580d44836d848e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga337ea7a9b006a79ee5ea615e9d9a5a6f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga337ea7a9b006a79ee5ea615e9d9a5a6f">nc_rpc_discardchanges</a> (void)</td></tr>
<tr class="memdesc:ga337ea7a9b006a79ee5ea615e9d9a5a6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;discard-changes&gt; NETCONF rpc message.  <a href="#ga337ea7a9b006a79ee5ea615e9d9a5a6f">More...</a><br/></td></tr>
<tr class="separator:ga337ea7a9b006a79ee5ea615e9d9a5a6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3e840368c40be2ea4d5201edbd3adaca"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3e840368c40be2ea4d5201edbd3adaca">nc_rpc_dump</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga3e840368c40be2ea4d5201edbd3adaca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dump the rpc message into a string.  <a href="#ga3e840368c40be2ea4d5201edbd3adaca">More...</a><br/></td></tr>
<tr class="separator:ga3e840368c40be2ea4d5201edbd3adaca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadab3d916540f79dd2b168134758fe3d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gadab3d916540f79dd2b168134758fe3d1">nc_rpc_dup</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gadab3d916540f79dd2b168134758fe3d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Duplicate &lt;rpc&gt; message.  <a href="#gadab3d916540f79dd2b168134758fe3d1">More...</a><br/></td></tr>
<tr class="separator:gadab3d916540f79dd2b168134758fe3d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae704e312c7aa5e6385abd4989e79398c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gae704e312c7aa5e6385abd4989e79398c">nc_rpc_editconfig</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target, <a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> source, <a class="el" href="../../db/de9/group__rpc.html#ga5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a> default_operation, <a class="el" href="../../db/de9/group__rpc.html#ga8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a> error_option, <a class="el" href="../../db/de9/group__rpc.html#gaca86efe74fc9a26cc30e33a8e9772579">NC_EDIT_TESTOPT_TYPE</a> test_option,...)</td></tr>
<tr class="memdesc:gae704e312c7aa5e6385abd4989e79398c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;edit-config&gt; NETCONF rpc message.  <a href="#gae704e312c7aa5e6385abd4989e79398c">More...</a><br/></td></tr>
<tr class="separator:gae704e312c7aa5e6385abd4989e79398c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4041bda37caa9eedb7a1e2534280f3df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga4041bda37caa9eedb7a1e2534280f3df">nc_rpc_free</a> (<a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga4041bda37caa9eedb7a1e2534280f3df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free rpc message.  <a href="#ga4041bda37caa9eedb7a1e2534280f3df">More...</a><br/></td></tr>
<tr class="separator:ga4041bda37caa9eedb7a1e2534280f3df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa9ad7fac41fdef0063c2e2793fb19efd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaa9ad7fac41fdef0063c2e2793fb19efd">nc_rpc_generic</a> (const char *data)</td></tr>
<tr class="memdesc:gaa9ad7fac41fdef0063c2e2793fb19efd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a generic NETCONF rpc message with the specified content.  <a href="#gaa9ad7fac41fdef0063c2e2793fb19efd">More...</a><br/></td></tr>
<tr class="separator:gaa9ad7fac41fdef0063c2e2793fb19efd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6818afbecf7fedf78f620162de78b4fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga6818afbecf7fedf78f620162de78b4fd">nc_rpc_get</a> (const struct nc_filter *filter)</td></tr>
<tr class="memdesc:ga6818afbecf7fedf78f620162de78b4fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;get&gt; NETCONF rpc message.  <a href="#ga6818afbecf7fedf78f620162de78b4fd">More...</a><br/></td></tr>
<tr class="separator:ga6818afbecf7fedf78f620162de78b4fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga05a10e0b6c89ac04426410f399b87257"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga05a10e0b6c89ac04426410f399b87257">nc_rpc_get_config</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga05a10e0b6c89ac04426410f399b87257"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get serialized content of the config parameter (&lt;config&gt; itself is not a part of the returned data). This function is valid only for &lt;copy-config&gt; and &lt;edit-config&gt; RPCs.  <a href="#ga05a10e0b6c89ac04426410f399b87257">More...</a><br/></td></tr>
<tr class="separator:ga05a10e0b6c89ac04426410f399b87257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf867eacee93e3596371415d028e62d29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#ga5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaf867eacee93e3596371415d028e62d29">nc_rpc_get_defop</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gaf867eacee93e3596371415d028e62d29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get default-operation type, valid only for &lt;edit-config&gt; RPCs.  <a href="#gaf867eacee93e3596371415d028e62d29">More...</a><br/></td></tr>
<tr class="separator:gaf867eacee93e3596371415d028e62d29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga488f894b9fa4866326837a9ed0575e36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#ga8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga488f894b9fa4866326837a9ed0575e36">nc_rpc_get_erropt</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga488f894b9fa4866326837a9ed0575e36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get error-option type, valid only for &lt;edit-config&gt; RPCs.  <a href="#ga488f894b9fa4866326837a9ed0575e36">More...</a><br/></td></tr>
<tr class="separator:ga488f894b9fa4866326837a9ed0575e36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga05705bba8345c15637bc54cf6b9a4b3d"><td class="memItemLeft" align="right" valign="top">struct nc_filter *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga05705bba8345c15637bc54cf6b9a4b3d">nc_rpc_get_filter</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga05705bba8345c15637bc54cf6b9a4b3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get filter from &lt;get&gt; or &lt;get-config&gt; RPC.  <a href="#ga05705bba8345c15637bc54cf6b9a4b3d">More...</a><br/></td></tr>
<tr class="separator:ga05705bba8345c15637bc54cf6b9a4b3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabc7eb11a4f2fdbe302a2430e00935c48"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="../../db/d52/group__session.html#ga85043314eec3f4f8c53234d9af1f2d41">nc_msgid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gabc7eb11a4f2fdbe302a2430e00935c48">nc_rpc_get_msgid</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gabc7eb11a4f2fdbe302a2430e00935c48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get message-id of the given rpc.  <a href="#gabc7eb11a4f2fdbe302a2430e00935c48">More...</a><br/></td></tr>
<tr class="separator:gabc7eb11a4f2fdbe302a2430e00935c48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga21ae2135af2588162112c13fb4095652"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga21ae2135af2588162112c13fb4095652">nc_rpc_get_ns</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga21ae2135af2588162112c13fb4095652"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get user's rpc operation namespace.  <a href="#ga21ae2135af2588162112c13fb4095652">More...</a><br/></td></tr>
<tr class="separator:ga21ae2135af2588162112c13fb4095652"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf639574395456fb6f4bade36fb4babd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">NC_OP</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gabf639574395456fb6f4bade36fb4babd">nc_rpc_get_op</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gabf639574395456fb6f4bade36fb4babd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get operation of the given rpc.  <a href="#gabf639574395456fb6f4bade36fb4babd">More...</a><br/></td></tr>
<tr class="separator:gabf639574395456fb6f4bade36fb4babd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gade3f111e7c7727d512313b4875fd8f50"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gade3f111e7c7727d512313b4875fd8f50">nc_rpc_get_op_content</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gade3f111e7c7727d512313b4875fd8f50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get content of the operation specification from the given rpc.  <a href="#gade3f111e7c7727d512313b4875fd8f50">More...</a><br/></td></tr>
<tr class="separator:gade3f111e7c7727d512313b4875fd8f50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9796f2bc7841265d478891974eb610c6"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga9796f2bc7841265d478891974eb610c6">nc_rpc_get_op_name</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga9796f2bc7841265d478891974eb610c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get operation name of the given rpc.  <a href="#ga9796f2bc7841265d478891974eb610c6">More...</a><br/></td></tr>
<tr class="separator:ga9796f2bc7841265d478891974eb610c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0b5d7acbcc0429fac6d5e3b509609bd8"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga0b5d7acbcc0429fac6d5e3b509609bd8">nc_rpc_get_op_namespace</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga0b5d7acbcc0429fac6d5e3b509609bd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get operation namespace of the given rpc.  <a href="#ga0b5d7acbcc0429fac6d5e3b509609bd8">More...</a><br/></td></tr>
<tr class="separator:ga0b5d7acbcc0429fac6d5e3b509609bd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3fcf5083b04a294e935a2897c212065b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3fcf5083b04a294e935a2897c212065b">nc_rpc_get_source</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga3fcf5083b04a294e935a2897c212065b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the source datastore type (running, startup, candidate) of the rpc request.  <a href="#ga3fcf5083b04a294e935a2897c212065b">More...</a><br/></td></tr>
<tr class="separator:ga3fcf5083b04a294e935a2897c212065b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab240067d45d58c945cdfd61948751379"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gab240067d45d58c945cdfd61948751379">nc_rpc_get_target</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gab240067d45d58c945cdfd61948751379"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the target datastore type (running, startup, candidate) of the rpc request.  <a href="#gab240067d45d58c945cdfd61948751379">More...</a><br/></td></tr>
<tr class="separator:gab240067d45d58c945cdfd61948751379"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab12fec9068d72fa6817f4a59a81e625e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gaca86efe74fc9a26cc30e33a8e9772579">NC_EDIT_TESTOPT_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gab12fec9068d72fa6817f4a59a81e625e">nc_rpc_get_testopt</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gab12fec9068d72fa6817f4a59a81e625e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get test-option type, valid only for &lt;edit-config&gt; RPCs supporting :validate:1.1 capability.  <a href="#gab12fec9068d72fa6817f4a59a81e625e">More...</a><br/></td></tr>
<tr class="separator:gab12fec9068d72fa6817f4a59a81e625e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa502fb30575000775b29a764101c1bef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">NC_RPC_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaa502fb30575000775b29a764101c1bef">nc_rpc_get_type</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gaa502fb30575000775b29a764101c1bef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get type of the rpc message.  <a href="#gaa502fb30575000775b29a764101c1bef">More...</a><br/></td></tr>
<tr class="separator:gaa502fb30575000775b29a764101c1bef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4ae747c4c96e1d3621745e122091ba11"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga4ae747c4c96e1d3621745e122091ba11">nc_rpc_getconfig</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> source, const struct nc_filter *filter)</td></tr>
<tr class="memdesc:ga4ae747c4c96e1d3621745e122091ba11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;get-config&gt; NETCONF rpc message.  <a href="#ga4ae747c4c96e1d3621745e122091ba11">More...</a><br/></td></tr>
<tr class="separator:ga4ae747c4c96e1d3621745e122091ba11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3b762dd881622eaa72b08c9b58d76a5e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3b762dd881622eaa72b08c9b58d76a5e">nc_rpc_getschema</a> (const char *name, const char *version, const char *format)</td></tr>
<tr class="memdesc:ga3b762dd881622eaa72b08c9b58d76a5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;get-schema&gt; NETCONF rpc message (RFC 6022).  <a href="#ga3b762dd881622eaa72b08c9b58d76a5e">More...</a><br/></td></tr>
<tr class="separator:ga3b762dd881622eaa72b08c9b58d76a5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae9876e8d038eb81a376bd82a08c58b95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gae9876e8d038eb81a376bd82a08c58b95">nc_rpc_killsession</a> (const char *kill_sid)</td></tr>
<tr class="memdesc:gae9876e8d038eb81a376bd82a08c58b95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;kill-session&gt; NETCONF rpc message.  <a href="#gae9876e8d038eb81a376bd82a08c58b95">More...</a><br/></td></tr>
<tr class="separator:gae9876e8d038eb81a376bd82a08c58b95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a03d40e00fbe019a34541a55f3f4a31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga6a03d40e00fbe019a34541a55f3f4a31">nc_rpc_lock</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target)</td></tr>
<tr class="memdesc:ga6a03d40e00fbe019a34541a55f3f4a31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;lock&gt; NETCONF rpc message.  <a href="#ga6a03d40e00fbe019a34541a55f3f4a31">More...</a><br/></td></tr>
<tr class="separator:ga6a03d40e00fbe019a34541a55f3f4a31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad843551f9d1ff8be6a118d026e8b995a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gad843551f9d1ff8be6a118d026e8b995a">nc_rpc_unlock</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target)</td></tr>
<tr class="memdesc:gad843551f9d1ff8be6a118d026e8b995a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;unlock&gt; NETCONF rpc message.  <a href="#gad843551f9d1ff8be6a118d026e8b995a">More...</a><br/></td></tr>
<tr class="separator:gad843551f9d1ff8be6a118d026e8b995a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga14fa1c78362457a646d5d820206d5158"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga14fa1c78362457a646d5d820206d5158">nc_rpc_validate</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> source,...)</td></tr>
<tr class="memdesc:ga14fa1c78362457a646d5d820206d5158"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;validate&gt; NETCONF rpc message.  <a href="#ga14fa1c78362457a646d5d820206d5158">More...</a><br/></td></tr>
<tr class="separator:ga14fa1c78362457a646d5d820206d5158"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga214fcc2c0095d56f4aa0d90c11da25fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d35/group__gen_a_p_i.html#ga298c7a4ad5cc76169a211f86df90f057">NC_MSG_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga214fcc2c0095d56f4aa0d90c11da25fc">nc_session_recv_rpc</a> (struct nc_session *session, int timeout, <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> **rpc)</td></tr>
<tr class="memdesc:ga214fcc2c0095d56f4aa0d90c11da25fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receive &lt;rpc&gt; request from the specified NETCONF session. This function is supposed to be performed only by NETCONF servers.  <a href="#ga214fcc2c0095d56f4aa0d90c11da25fc">More...</a><br/></td></tr>
<tr class="separator:ga214fcc2c0095d56f4aa0d90c11da25fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga27d3fe78769630932a18c726df4fe6e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d35/group__gen_a_p_i.html#ga298c7a4ad5cc76169a211f86df90f057">NC_MSG_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga27d3fe78769630932a18c726df4fe6e6">nc_session_send_recv</a> (struct nc_session *session, <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc, <a class="el" href="../../d0/de2/group__reply.html#ga40338a1274759a932a7c2c7b8ed0121d">nc_reply</a> **reply)</td></tr>
<tr class="memdesc:ga27d3fe78769630932a18c726df4fe6e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send &lt;rpc&gt; and receive &lt;rpc-reply&gt; via the specified NETCONF session.  <a href="#ga27d3fe78769630932a18c726df4fe6e6">More...</a><br/></td></tr>
<tr class="separator:ga27d3fe78769630932a18c726df4fe6e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeb0d93ea1b5ef0c22c9e5372425fb5c3"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="../../db/d52/group__session.html#ga85043314eec3f4f8c53234d9af1f2d41">nc_msgid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaeb0d93ea1b5ef0c22c9e5372425fb5c3">nc_session_send_rpc</a> (struct nc_session *session, <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gaeb0d93ea1b5ef0c22c9e5372425fb5c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send &lt;rpc&gt; request via specified NETCONF session. This function is supposed to be performed only by NETCONF clients.  <a href="#gaeb0d93ea1b5ef0c22c9e5372425fb5c3">More...</a><br/></td></tr>
<tr class="separator:gaeb0d93ea1b5ef0c22c9e5372425fb5c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>libnetconf's functions for handling NETCONF &lt;rpc&gt; messages. </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="gab21d1d39737065c552f2ccc5b4819262"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct nc_msg <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>rpc message. </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga06a2c29efc74abd4d0c88e7abb5e914d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga06a2c29efc74abd4d0c88e7abb5e914d">NC_CAP_ATTR</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>RPC attributes list. </p>
<p>List of specific attributes that can be added to selected RPC operations. The attributes can be set by (possibly repeated) call of the <a class="el" href="../../db/de9/group__rpc.html#ga14f5e170cbc9acd9a146eee2fb6b796f" title="Set the attribute of the given &lt;rpc&gt; which is specific for some NETCONF capability. ">nc_rpc_capability_attr()</a> function. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga06a2c29efc74abd4d0c88e7abb5e914dadef4f6d77cebdc7c004db1f5f5f612ba"></a>NC_CAP_ATTR_WITHDEFAULTS_MODE</em>&#160;</td><td class="fielddoc">
<p>Set &lt;with-default&gt; attribute of the operation </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga5852fd110198481afb37cc8dcf0bf454"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of edit-config's &lt;default-operation&gt; element values. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga5852fd110198481afb37cc8dcf0bf454ab2b415d864a2f84bf6e0e31abe56d187"></a>NC_EDIT_DEFOP_ERROR</em>&#160;</td><td class="fielddoc">
<p>for internal purposes, not defined by NETCONF </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga5852fd110198481afb37cc8dcf0bf454ae959e6f9ed31a8e4441ad84eae8b43d2"></a>NC_EDIT_DEFOP_NOTSET</em>&#160;</td><td class="fielddoc">
<p>follow NETCONF defined default behavior (merge) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga5852fd110198481afb37cc8dcf0bf454a5242dcc6a090887ef8b3f6c96b1b4931"></a>NC_EDIT_DEFOP_MERGE</em>&#160;</td><td class="fielddoc">
<p>merge (RFC 6241, sec. 7.2) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga5852fd110198481afb37cc8dcf0bf454a80cda5b10ba3ff7f819c08508be9237c"></a>NC_EDIT_DEFOP_REPLACE</em>&#160;</td><td class="fielddoc">
<p>replace (RFC 6241, sec. 7.2) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga5852fd110198481afb37cc8dcf0bf454a37dd969ad73f6ac990785d9802672946"></a>NC_EDIT_DEFOP_NONE</em>&#160;</td><td class="fielddoc">
<p>none (RFC 6241, sec. 7.2) </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga8eb32ba579043f2750fa8558d9284b32"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of edit-config's &lt;error-option&gt; element values. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga8eb32ba579043f2750fa8558d9284b32a9a174d6de80e8ea7d2267d550061f4b4"></a>NC_EDIT_ERROPT_ERROR</em>&#160;</td><td class="fielddoc">
<p>for internal purposes, not defined by NETCONF </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga8eb32ba579043f2750fa8558d9284b32a8f01a1f484abf78c8c0ea3f2d369306e"></a>NC_EDIT_ERROPT_NOTSET</em>&#160;</td><td class="fielddoc">
<p>follow NETCONF defined default behavior (stop-on-error) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga8eb32ba579043f2750fa8558d9284b32ae3322bea978cea2d2a7c0818680bd721"></a>NC_EDIT_ERROPT_STOP</em>&#160;</td><td class="fielddoc">
<p>stop-on-error (RFC 6241, sec. 7.2) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga8eb32ba579043f2750fa8558d9284b32a69d82c66a324215010791718c1bc61f6"></a>NC_EDIT_ERROPT_CONT</em>&#160;</td><td class="fielddoc">
<p>continue-on-error (RFC 6241, sec. 7.2) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga8eb32ba579043f2750fa8558d9284b32a35128042558e32842f827be8c31d5b1a"></a>NC_EDIT_ERROPT_ROLLBACK</em>&#160;</td><td class="fielddoc">
<p>rollback-on-error (RFC 6241, sec. 7.2), valid only when :rollback-on-error capability is enabled </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gaff232fd4280e385c8e45fcca033e58fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#gaff232fd4280e385c8e45fcca033e58fd">NC_EDIT_OP_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of edit-config's operation attribute values. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggaff232fd4280e385c8e45fcca033e58fda0edecb3360a233e6d2d8435a96a3e54f"></a>NC_EDIT_OP_ERROR</em>&#160;</td><td class="fielddoc">
<p>for internal purposes, not defined by NETCONF </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaff232fd4280e385c8e45fcca033e58fda269b9d38aa530c9cfe21b5477e328e0c"></a>NC_EDIT_OP_MERGE</em>&#160;</td><td class="fielddoc">
<p>merge </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaff232fd4280e385c8e45fcca033e58fda973d70fee8360757be1f9379334a5ecb"></a>NC_EDIT_OP_NOTSET</em>&#160;</td><td class="fielddoc">
<p>compatibility value for NC_EDIT_DEFOP_TYPE </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaff232fd4280e385c8e45fcca033e58fda5d2ca68f21babd6220538a1e3eac2356"></a>NC_EDIT_OP_REPLACE</em>&#160;</td><td class="fielddoc">
<p>replace </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaff232fd4280e385c8e45fcca033e58fdaa7f202a2d5f43e094946b1361da93f40"></a>NC_EDIT_OP_CREATE</em>&#160;</td><td class="fielddoc">
<p>create </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaff232fd4280e385c8e45fcca033e58fdaf85c0828113a86cb30dd67991e19b6ba"></a>NC_EDIT_OP_DELETE</em>&#160;</td><td class="fielddoc">
<p>delete </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaff232fd4280e385c8e45fcca033e58fda5c6473715392eb03614abc6d7e62bdf9"></a>NC_EDIT_OP_REMOVE</em>&#160;</td><td class="fielddoc">
<p>remove </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gaca86efe74fc9a26cc30e33a8e9772579"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#gaca86efe74fc9a26cc30e33a8e9772579">NC_EDIT_TESTOPT_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of edit-config's &lt;test-option&gt; element values. </p>
<p>Valid only with enabled :validate:1.1 capability. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggaca86efe74fc9a26cc30e33a8e9772579a1770ae5b90495ca720f60ca76ab029b4"></a>NC_EDIT_TESTOPT_ERROR</em>&#160;</td><td class="fielddoc">
<p>for internal purposes, not defined by NETCONF </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaca86efe74fc9a26cc30e33a8e9772579acb24b46f501c50f2a78b87da73322bc7"></a>NC_EDIT_TESTOPT_NOTSET</em>&#160;</td><td class="fielddoc">
<p>follow NETCONF defined default behavior (test-then-set) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaca86efe74fc9a26cc30e33a8e9772579aae2180fb26e03b4c1ea184abb463056c"></a>NC_EDIT_TESTOPT_TESTSET</em>&#160;</td><td class="fielddoc">
<p>test-then-set </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaca86efe74fc9a26cc30e33a8e9772579a56b353b9c45d7eed3373e41feb509294"></a>NC_EDIT_TESTOPT_SET</em>&#160;</td><td class="fielddoc">
<p>set </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggaca86efe74fc9a26cc30e33a8e9772579a7f8086cbfcc1c1811b33e2d681f77072"></a>NC_EDIT_TESTOPT_TEST</em>&#160;</td><td class="fielddoc">
<p>test-only </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga9e74498f9118686c7fb8dfe2c2459706"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">NC_FILTER_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of supported NETCONF filter types. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga9e74498f9118686c7fb8dfe2c2459706a487f472296b31fcec26a2bef87d50178"></a>NC_FILTER_UNKNOWN</em>&#160;</td><td class="fielddoc">
<p>unsupported filter type </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga9e74498f9118686c7fb8dfe2c2459706ab584539474b828102a0b7238b614abd4"></a>NC_FILTER_SUBTREE</em>&#160;</td><td class="fielddoc">
<p>subtree filter according to RFC 6241, sec. 6 </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga3e6fc59e2d06c1c0edb36ee64ee9cc07"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">NC_OP</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of supported &lt;rpc&gt; operations. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a7ca4781a2c8644c3c15e3b0cd9116090"></a>NC_OP_UNKNOWN</em>&#160;</td><td class="fielddoc">
<p>unknown/error value </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a9f918e6ed1c58fb70ffe4cbd05882332"></a>NC_OP_GETCONFIG</em>&#160;</td><td class="fielddoc">
<p>&lt;get-config&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07ae7c153c569fe9ca06532dadc41dce78f"></a>NC_OP_GET</em>&#160;</td><td class="fielddoc">
<p>&lt;get&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a545f2b8ad13fc1cb449f078908312ef1"></a>NC_OP_EDITCONFIG</em>&#160;</td><td class="fielddoc">
<p>&lt;edit-config&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07af5cc206ce4cd2b20cd562bb01e0a8da3"></a>NC_OP_CLOSESESSION</em>&#160;</td><td class="fielddoc">
<p>&lt;close-session&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a01a1b829ca743ac8f8e8444d71f16d0d"></a>NC_OP_KILLSESSION</em>&#160;</td><td class="fielddoc">
<p>&lt;kill-session&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07abc36a612cfba2cf3462d99fae4ab4ac5"></a>NC_OP_COPYCONFIG</em>&#160;</td><td class="fielddoc">
<p>&lt;copy-config&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07abf39ac97e04fd8d77d6a409a004eb234"></a>NC_OP_DELETECONFIG</em>&#160;</td><td class="fielddoc">
<p>&lt;delete-config&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07af07ffd285bc743fcbdeace96f2b21d22"></a>NC_OP_LOCK</em>&#160;</td><td class="fielddoc">
<p>&lt;lock&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07aa4071db38c423865b24543cb504a4b42"></a>NC_OP_UNLOCK</em>&#160;</td><td class="fielddoc">
<p>&lt;unlock&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a350f96fd686eea971d1d9e087a9ff8f4"></a>NC_OP_COMMIT</em>&#160;</td><td class="fielddoc">
<p>&lt;commit&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a59fd75a1b96a307a2d87e327c7d9a695"></a>NC_OP_DISCARDCHANGES</em>&#160;</td><td class="fielddoc">
<p>&lt;discard-changes&gt; operation </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07aafc549220669ed05b9c043b09be496fe"></a>NC_OP_CREATESUBSCRIPTION</em>&#160;</td><td class="fielddoc">
<p>&lt;create-subscription&gt; operation (RFC 5277) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a213f30aeb2d0d09bc6de7d98015860c3"></a>NC_OP_GETSCHEMA</em>&#160;</td><td class="fielddoc">
<p>&lt;get-schema&gt; operation (RFC 6022) </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a064e97e228090350548b4b67c6c598b0"></a>NC_OP_VALIDATE</em>&#160;</td><td class="fielddoc">
<p>&lt;validate&gt; operation </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga4088fac1dd592062b27ff5b0e1708d00"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">NC_RPC_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of &lt;rpc&gt; operation types. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00ae27a06c29d4cb56cce4298bc54dc498a"></a>NC_RPC_UNKNOWN</em>&#160;</td><td class="fielddoc">
<p>value describing that no supported operation type was detected so far </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00a4c352cf3bf15069fc76e4ac698de0a8c"></a>NC_RPC_HELLO</em>&#160;</td><td class="fielddoc">
<p>&lt;hello&gt; message type, same as NC_REPLY_HELLO </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00ab9542d7955d9821f23b5909f3dbec7bb"></a>NC_RPC_DATASTORE_READ</em>&#160;</td><td class="fielddoc">
<p>&lt;rpc&gt; contains operation reading datastore </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00ab283d1c39df65fe56607329bc3c946f9"></a>NC_RPC_DATASTORE_WRITE</em>&#160;</td><td class="fielddoc">
<p>&lt;rpc&gt; contains operation modifying datastore </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00aa7e77d1cd094384f2683352c63a4fccb"></a>NC_RPC_SESSION</em>&#160;</td><td class="fielddoc">
<p>&lt;rpc&gt; contains operation affecting the session </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga0dbfd598d6fd303819817370cdf63229"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nc_filter_free </td>
          <td>(</td>
          <td class="paramtype">struct nc_filter *&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroy the filter structure. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filter</td><td>Filter to destroy. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga599c715b0aee0f1f2ed231ce1d78e5bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct nc_filter* nc_filter_new </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">NC_FILTER_TYPE</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new NETCONF filter of the specified type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td>Type of the filter. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">...</td><td>Filter content:<ul>
<li>for <a class="el" href="../../db/de9/group__rpc.html#gga9e74498f9118686c7fb8dfe2c2459706ab584539474b828102a0b7238b614abd4">NC_FILTER_SUBTREE</a> type, a single variadic parameter <b>const char* filter</b> is accepted. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created NETCONF filter structure. </dd></dl>

</div>
</div>
<a class="anchor" id="ga5c4348c96b0d5e6a64f94dbbdeaf4100"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_build </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>rpc_dump</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct nc_session *&#160;</td>
          <td class="paramname"><em>session</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Build &lt;rpc&gt; message from the string. This is the reverse function of the <a class="el" href="../../db/de9/group__rpc.html#ga3e840368c40be2ea4d5201edbd3adaca" title="Dump the rpc message into a string. ">nc_rpc_dump()</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc_dump</td><td>String containing the NETCONF &lt;rpc&gt; message. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">session</td><td>Session information needed for ACM. If NULL, ACM structure is not prepared and no ACM rules will be applied to the created RPC message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Complete rpc structure used by libnetconf's functions. </dd></dl>

</div>
</div>
<a class="anchor" id="ga14f5e170cbc9acd9a146eee2fb6b796f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int nc_rpc_capability_attr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#ga06a2c29efc74abd4d0c88e7abb5e914d">NC_CAP_ATTR</a>&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the attribute of the given &lt;rpc&gt; which is specific for some NETCONF capability. </p>
<h3>Parameters for specific capability attributes:</h3>
<ul>
<li><a class="el" href="../../db/de9/group__rpc.html#gga06a2c29efc74abd4d0c88e7abb5e914dadef4f6d77cebdc7c004db1f5f5f612ba">NC_CAP_ATTR_WITHDEFAULTS_MODE</a><ul>
<li>applicable to &lt;get&gt;, &lt;get-config&gt; and &lt;copy-config&gt; operations.</li>
<li>Accepts one parameter of <a class="el" href="../../d1/df7/group__withdefaults.html#ga3d13afb72bb0c0098f47e8b612cdeb81" title="Enumeration of &lt;with-defaults&gt; element values. ">NCWD_MODE</a> type, specifying mode of the :with-defaults capability (RFC 6243).</li>
</ul>
</li>
</ul>
<h3>Examples:</h3>
<ul>
<li>nc_rpc_capability_attr(rpc, <a class="el" href="../../db/de9/group__rpc.html#gga06a2c29efc74abd4d0c88e7abb5e914dadef4f6d77cebdc7c004db1f5f5f612ba">NC_CAP_ATTR_WITHDEFAULTS_MODE</a>, <a class="el" href="../../d1/df7/group__withdefaults.html#gga3d13afb72bb0c0098f47e8b612cdeb81a8b422cc5bcfa0ddd20d52ec6e71362db">NCWD_MODE_ALL</a>);</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>RPC to be modified. This RPC must be created by one of the nc_rpc* functions. RPC received by the server side's <a class="el" href="../../db/de9/group__rpc.html#ga214fcc2c0095d56f4aa0d90c11da25fc" title="Receive &lt;rpc&gt; request from the specified NETCONF session. This function is supposed to be performed o...">nc_session_recv_rpc()</a> is not accepted. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">attr</td><td>RPC's attribute defined by a capability to be set or changed. The list of accepted operations can be found in the description of this function. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success,<br/>
 non-zero on error. </dd></dl>

</div>
</div>
<a class="anchor" id="ga7977ca8b562643607b3c846ed36bbb23"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_commit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;commit&gt; NETCONF rpc message. </p>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gaf7b76c1243dc218cf1dc8b17876e319c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_copyconfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;copy-config&gt; NETCONF rpc message. </p>
<h3>Variadic parameters:</h3>
<ul>
<li>source is specified as <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a735c5d45557d1545fcb65bfdf484290e">NC_DATASTORE_CONFIG</a>:<ul>
<li><a class="el" href="../../db/de9/group__rpc.html#gaf7b76c1243dc218cf1dc8b17876e319c" title="Create &lt;copy-config&gt; NETCONF rpc message. ">nc_rpc_copyconfig()</a> accepts as the first variadic parameter <b>const char* source_config</b> providing the complete configuration data to copy.</li>
</ul>
</li>
<li>source is specified as <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a8507d8c0a99ba9da1cb38287b26b911c">NC_DATASTORE_URL</a>:<ul>
<li><a class="el" href="../../db/de9/group__rpc.html#gaf7b76c1243dc218cf1dc8b17876e319c" title="Create &lt;copy-config&gt; NETCONF rpc message. ">nc_rpc_copyconfig()</a> accepts as the first variadic parameter <b>const char* source_url</b> providing the URL to the file</li>
</ul>
</li>
<li>target is specified as <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a8507d8c0a99ba9da1cb38287b26b911c">NC_DATASTORE_URL</a>:<ul>
<li><a class="el" href="../../db/de9/group__rpc.html#gaf7b76c1243dc218cf1dc8b17876e319c" title="Create &lt;copy-config&gt; NETCONF rpc message. ">nc_rpc_copyconfig()</a> accepts as another (first or second according to an eventual previous variadic parameter) variadic parameter <b>const char* target_url</b> providing the URL to the target file.</li>
</ul>
</li>
</ul>
<p>The file that the url refers to contains the complete datastore, encoded in XML under the element &lt;config&gt; in the "urn:ietf:params:xml:ns:netconf:base:1.0" namespace.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td>Source configuration of the datastore type. If the <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a735c5d45557d1545fcb65bfdf484290e">NC_DATASTORE_CONFIG</a> is specified, data parameter is used as the complete configuration to copy. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be replaced. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">...</td><td>Specific parameters according to the source and target parameters. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gae1faa46f5048f21dc580d44836d848e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_deleteconfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;delete-config&gt; NETCONF rpc message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be deleted. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">...</td><td>URL as <b>const char* url</b> if the target parameter is specified as <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a8507d8c0a99ba9da1cb38287b26b911c">NC_DATASTORE_URL</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga337ea7a9b006a79ee5ea615e9d9a5a6f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_discardchanges </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;discard-changes&gt; NETCONF rpc message. </p>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga3e840368c40be2ea4d5201edbd3adaca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* nc_rpc_dump </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Dump the rpc message into a string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>String in XML format containing the NETCONF's &lt;rpc&gt; element and all of its content. Caller is responsible for freeing the returned string with free(). </dd></dl>

</div>
</div>
<a class="anchor" id="gadab3d916540f79dd2b168134758fe3d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_dup </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Duplicate &lt;rpc&gt; message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;rpc&gt; message to replicate. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Copy of the given &lt;rpc&gt; message. </dd></dl>

</div>
</div>
<a class="anchor" id="gae704e312c7aa5e6385abd4989e79398c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_editconfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#ga5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a>&#160;</td>
          <td class="paramname"><em>default_operation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#ga8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a>&#160;</td>
          <td class="paramname"><em>error_option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#gaca86efe74fc9a26cc30e33a8e9772579">NC_EDIT_TESTOPT_TYPE</a>&#160;</td>
          <td class="paramname"><em>test_option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;edit-config&gt; NETCONF rpc message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be edited. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td>Specifies the type of the source data taken from the variadic parameter. Only <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a735c5d45557d1545fcb65bfdf484290e">NC_DATASTORE_CONFIG</a> (variadic parameter contains the &lt;config&gt; data) and <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a8507d8c0a99ba9da1cb38287b26b911c">NC_DATASTORE_URL</a> (variadic parameter contains URL for &lt;url&gt; element) values are accepted. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">default_operation</td><td>Default operation for this request, 0 to skip setting this parameter and use the default server ('merge') behavior. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">error_option</td><td>Set the response to an error, 0 for the server default behavior. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">test_option</td><td>Set test-option element according to :validate:1.1 capability specified in RFC 6241. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">...</td><td>According to the source parameter, variadic parameter can be one of the following:<ul>
<li><b>const char* config</b> defining the content of the &lt;config&gt; element in case the source parameter is specified as <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a735c5d45557d1545fcb65bfdf484290e">NC_DATASTORE_CONFIG</a></li>
<li><b>const char* source_url</b> specifying URL, in case the source parameter is specified as <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a8507d8c0a99ba9da1cb38287b26b911c">NC_DATASTORE_URL</a>. The URL must refer to the file containing configuration data hierarchy to be modified, encoded in XML under the element &lt;config&gt; in the "urn:ietf:params:xml:ns:netconf:base:1.0" namespace.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga4041bda37caa9eedb7a1e2534280f3df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nc_rpc_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free rpc message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message to free. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa9ad7fac41fdef0063c2e2793fb19efd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_generic </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a generic NETCONF rpc message with the specified content. </p>
<p>Function gets the data parameter and envelopes it into &lt;rpc&gt; container. Caller is fully responsible for the correctness of the given data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>XML content of the &lt;rpc&gt; request to be sent. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga6818afbecf7fedf78f620162de78b4fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_get </td>
          <td>(</td>
          <td class="paramtype">const struct nc_filter *&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;get&gt; NETCONF rpc message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filter</td><td>NETCONF filter or NULL if no filter is required. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga05a10e0b6c89ac04426410f399b87257"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* nc_rpc_get_config </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get serialized content of the config parameter (&lt;config&gt; itself is not a part of the returned data). This function is valid only for &lt;copy-config&gt; and &lt;edit-config&gt; RPCs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;copy-config&gt; or &lt;edit-config&gt; rpc message.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Serialized XML or NULL if not available. Caller is responsible for freeing the returned string with free(). </dd></dl>

</div>
</div>
<a class="anchor" id="gaf867eacee93e3596371415d028e62d29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#ga5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a> nc_rpc_get_defop </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get default-operation type, valid only for &lt;edit-config&gt; RPCs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;edit-config&gt; rpc message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>One of the <a class="el" href="../../db/de9/group__rpc.html#ga5852fd110198481afb37cc8dcf0bf454" title="Enumeration of edit-config&#39;s &lt;default-operation&gt; element values. ">NC_EDIT_DEFOP_TYPE</a>, <a class="el" href="../../db/de9/group__rpc.html#gga5852fd110198481afb37cc8dcf0bf454ab2b415d864a2f84bf6e0e31abe56d187">NC_EDIT_DEFOP_ERROR</a> in case of error. </dd></dl>

</div>
</div>
<a class="anchor" id="ga488f894b9fa4866326837a9ed0575e36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#ga8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a> nc_rpc_get_erropt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get error-option type, valid only for &lt;edit-config&gt; RPCs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;edit-config&gt; rpc message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>One of the <a class="el" href="../../db/de9/group__rpc.html#ga8eb32ba579043f2750fa8558d9284b32" title="Enumeration of edit-config&#39;s &lt;error-option&gt; element values. ">NC_EDIT_ERROPT_TYPE</a>, <a class="el" href="../../db/de9/group__rpc.html#gga8eb32ba579043f2750fa8558d9284b32a9a174d6de80e8ea7d2267d550061f4b4">NC_EDIT_ERROPT_ERROR</a> in case of an error </dd></dl>

</div>
</div>
<a class="anchor" id="ga05705bba8345c15637bc54cf6b9a4b3d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct nc_filter* nc_rpc_get_filter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get filter from &lt;get&gt; or &lt;get-config&gt; RPC. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;get&gt; or &lt;get-config&gt; rpc message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the struct nc_filter or NULL if no filter specified </dd></dl>

</div>
</div>
<a class="anchor" id="gabc7eb11a4f2fdbe302a2430e00935c48"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="../../db/d52/group__session.html#ga85043314eec3f4f8c53234d9af1f2d41">nc_msgid</a> nc_rpc_get_msgid </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get message-id of the given rpc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>message-id of the given rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga21ae2135af2588162112c13fb4095652"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* nc_rpc_get_ns </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get user's rpc operation namespace. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Namespace URI, NULL in case of error. </dd></dl>

</div>
</div>
<a class="anchor" id="gabf639574395456fb6f4bade36fb4babd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">NC_OP</a> nc_rpc_get_op </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get operation of the given rpc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Operation identification of the given rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gade3f111e7c7727d512313b4875fd8f50"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* nc_rpc_get_op_content </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get content of the operation specification from the given rpc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>String in XML form starting with the operation name element. Caller is responsible for freeing the returned string with free(). </dd></dl>

</div>
</div>
<a class="anchor" id="ga9796f2bc7841265d478891974eb610c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* nc_rpc_get_op_name </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get operation name of the given rpc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Name of operation in the given rpc message. Caller is responsible for freeing the returned string with free(). </dd></dl>

</div>
</div>
<a class="anchor" id="ga0b5d7acbcc0429fac6d5e3b509609bd8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* nc_rpc_get_op_namespace </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get operation namespace of the given rpc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Namespace of operation in the given rpc message. Caller is responsible for freeing the returned string with free(). </dd></dl>

</div>
</div>
<a class="anchor" id="ga3fcf5083b04a294e935a2897c212065b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> nc_rpc_get_source </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the source datastore type (running, startup, candidate) of the rpc request. </p>
<p>For &lt;rpc&gt; message that does not affect datastore (e.g. kill-session), the <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a790d421ac3a36ea64a24aae83bad6f2b">NC_DATASTORE_ERROR</a> is returned.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>One of the <a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73" title="Enumeration of the supported types of datastores defined by NETCONF. ">NC_DATASTORE</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="gab240067d45d58c945cdfd61948751379"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> nc_rpc_get_target </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the target datastore type (running, startup, candidate) of the rpc request. </p>
<p>For &lt;rpc&gt; message that does not affect datastore (e.g. kill-session), the <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a790d421ac3a36ea64a24aae83bad6f2b">NC_DATASTORE_ERROR</a> is returned.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>One of the <a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73" title="Enumeration of the supported types of datastores defined by NETCONF. ">NC_DATASTORE</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="gab12fec9068d72fa6817f4a59a81e625e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gaca86efe74fc9a26cc30e33a8e9772579">NC_EDIT_TESTOPT_TYPE</a> nc_rpc_get_testopt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get test-option type, valid only for &lt;edit-config&gt; RPCs supporting :validate:1.1 capability. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;edit-config&gt; rpc message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>One of the <a class="el" href="../../db/de9/group__rpc.html#gaca86efe74fc9a26cc30e33a8e9772579" title="Enumeration of edit-config&#39;s &lt;test-option&gt; element values. ">NC_EDIT_TESTOPT_TYPE</a>, <a class="el" href="../../db/de9/group__rpc.html#ggaca86efe74fc9a26cc30e33a8e9772579a1770ae5b90495ca720f60ca76ab029b4">NC_EDIT_TESTOPT_ERROR</a> in case of an error </dd></dl>

</div>
</div>
<a class="anchor" id="gaa502fb30575000775b29a764101c1bef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">NC_RPC_TYPE</a> nc_rpc_get_type </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get type of the rpc message. </p>
<p>&lt;rpc&gt; message can affect the datastore, the session or it can be unknown for the libnetconf (defined by an unsupported capability or device configuration model)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>One of the <a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00" title="Enumeration of &lt;rpc&gt; operation types. ">NC_RPC_TYPE</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ga4ae747c4c96e1d3621745e122091ba11"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_getconfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct nc_filter *&#160;</td>
          <td class="paramname"><em>filter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;get-config&gt; NETCONF rpc message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td>Source configuration datastore type being queried. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filter</td><td>NETCONF filter or NULL if no filter required. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga3b762dd881622eaa72b08c9b58d76a5e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_getschema </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>version</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;get-schema&gt; NETCONF rpc message (RFC 6022). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Identifier for the schema list entry. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">version</td><td>Optional parameter specifying version of the requested schema. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">format</td><td>Optional parameter specifying the data modeling language of the schema. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gae9876e8d038eb81a376bd82a08c58b95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_killsession </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>kill_sid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;kill-session&gt; NETCONF rpc message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">kill_sid</td><td>ID of session to kill. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga6a03d40e00fbe019a34541a55f3f4a31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_lock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;lock&gt; NETCONF rpc message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be locked. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gad843551f9d1ff8be6a118d026e8b995a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_unlock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;unlock&gt; NETCONF rpc message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be unlocked. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga14fa1c78362457a646d5d820206d5158"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* nc_rpc_validate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;validate&gt; NETCONF rpc message. </p>
<h3>Variadic parameters:</h3>
<ul>
<li>source is specified as <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a8507d8c0a99ba9da1cb38287b26b911c">NC_DATASTORE_URL</a>:<ul>
<li><a class="el" href="../../db/de9/group__rpc.html#ga14fa1c78362457a646d5d820206d5158" title="Create &lt;validate&gt; NETCONF rpc message. ">nc_rpc_validate()</a> accepts the first variadic parameter <b>const char* source_url</b> providing the url to the file.</li>
</ul>
</li>
<li>source is specified as <a class="el" href="../../db/d67/group__store.html#gga5e4b9ee138b963e8ea2354fef2ebbe73a735c5d45557d1545fcb65bfdf484290e">NC_DATASTORE_CONFIG</a>:<ul>
<li><a class="el" href="../../db/de9/group__rpc.html#ga14fa1c78362457a646d5d820206d5158" title="Create &lt;validate&gt; NETCONF rpc message. ">nc_rpc_validate()</a> accepts as the first variadic parameter <b>const char* source_config</b> providing the complete configuration data to copy.</li>
</ul>
</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td>Name of the configuration datastore to validate. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga214fcc2c0095d56f4aa0d90c11da25fc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d35/group__gen_a_p_i.html#ga298c7a4ad5cc76169a211f86df90f057">NC_MSG_TYPE</a> nc_session_recv_rpc </td>
          <td>(</td>
          <td class="paramtype">struct nc_session *&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>timeout</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> **&#160;</td>
          <td class="paramname"><em>rpc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Receive &lt;rpc&gt; request from the specified NETCONF session. This function is supposed to be performed only by NETCONF servers. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">session</td><td>NETCONF session to use. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">timeout</td><td>Timeout in microseconds, -1 for infinite timeout, 0 for non-blocking </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rpc</td><td>Received &lt;rpc&gt; </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li><a class="el" href="../../d3/d35/group__gen_a_p_i.html#gga298c7a4ad5cc76169a211f86df90f057a7f6951d98d30342a65e6b1d7ccca2df0">NC_MSG_RPC</a> - success, *rpc points to the received &lt;rpc&gt; message.</li>
<li><a class="el" href="../../d3/d35/group__gen_a_p_i.html#gga298c7a4ad5cc76169a211f86df90f057a7cd0f4a4edef33489e675b080645288d">NC_MSG_HELLO</a> - success, *rpc points to the received &lt;hello&gt; message.</li>
<li><a class="el" href="../../d3/d35/group__gen_a_p_i.html#gga298c7a4ad5cc76169a211f86df90f057a43e894ea69b22c6080016fe210da4305">NC_MSG_UNKNOWN</a> - error occurred</li>
<li><a class="el" href="../../d3/d35/group__gen_a_p_i.html#gga298c7a4ad5cc76169a211f86df90f057a5b0ce1ca54b15ef3ca1ef901263c1b72">NC_MSG_WOULDBLOCK</a> - receiving timeouted without any received message. </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="ga27d3fe78769630932a18c726df4fe6e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d35/group__gen_a_p_i.html#ga298c7a4ad5cc76169a211f86df90f057">NC_MSG_TYPE</a> nc_session_send_recv </td>
          <td>(</td>
          <td class="paramtype">struct nc_session *&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/de2/group__reply.html#ga40338a1274759a932a7c2c7b8ed0121d">nc_reply</a> **&#160;</td>
          <td class="paramname"><em>reply</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send &lt;rpc&gt; and receive &lt;rpc-reply&gt; via the specified NETCONF session. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">session</td><td>NETCONF session to use. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>RPC message to send. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">reply</td><td>Received &lt;rpc-reply&gt; </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li><a class="el" href="../../d3/d35/group__gen_a_p_i.html#gga298c7a4ad5cc76169a211f86df90f057a827b3c9c898a48ec8e9f8f9af11f1bdd">NC_MSG_REPLY</a> - success, *reply points to the received &lt;rpc-reply&gt; message.</li>
<li><a class="el" href="../../d3/d35/group__gen_a_p_i.html#gga298c7a4ad5cc76169a211f86df90f057a1272e268199e52e368957b6a3b288d50">NC_MSG_NONE</a> - success, but &lt;rpc-reply&gt; with error information was processed automatically using callback specified with <a class="el" href="../../d0/de2/group__reply.html#ga771a110143440bcd3b7d4c0e98388e80" title="Set a callback function to process (e.g. print) NETCONF &lt;rpc-error&gt; message items.If the func parameter is NULL, the callback is set back to the default (no) function. ">nc_callback_error_reply()</a> function. *reply was not changed.</li>
<li><a class="el" href="../../d3/d35/group__gen_a_p_i.html#gga298c7a4ad5cc76169a211f86df90f057a43e894ea69b22c6080016fe210da4305">NC_MSG_UNKNOWN</a> - error occurred </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="gaeb0d93ea1b5ef0c22c9e5372425fb5c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="../../db/d52/group__session.html#ga85043314eec3f4f8c53234d9af1f2d41">nc_msgid</a> nc_session_send_rpc </td>
          <td>(</td>
          <td class="paramtype">struct nc_session *&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send &lt;rpc&gt; request via specified NETCONF session. This function is supposed to be performed only by NETCONF clients. </p>
<p>This function IS thread safe.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">session</td><td>NETCONF session to use. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;rpc&gt; message to send. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on error,<br/>
 message-id of sent message on success. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Fri Apr 15 2016 09:20:09 for libnetconf by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
